# SPDX-License-Identifier: GPL-2.0
#
# Makefile for the Rockchip tm1622 display driver.
#
#

_ARCH=${ARCH}
_CROSS_COMPILE=${CROSS_COMPILE}
_KDIR=${KDIR}
# EXTRA_CFLAGS := -I$(src)/../include

# CFLAGS = "-Wno-error=unused-variable -Wno-error=unused-label -Wno-error=unused-function"
ccflags-y += -Wno-error=unused-variable -Wno-error=unused-label -Wno-error=unused-function

# if all errors are to be suppressed
# KBUILD_CFLAGS += -w

# if that specific error is to be suppressed.
# KBUILD_CFLAGS += "-Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=unused-label -Wno-error=unused-function"


obj-m := tdkicm42686.o

tdkicm42686-y += icm42686.o

all:
		CROSS_COMPILE=${_CROSS_COMPILE} make ARCH=${_ARCH} -C $(_KDIR) M=$(PWD) modules

clean:
		CROSS_COMPILE=${_CROSS_COMPILE} make ARCH=${_ARCH} -C $(_KDIR) M=$(PWD) clean

